package com.maiji.cloud.entities.shopingmall;


import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 
 * Description:  砍价商品管理表
 * @author zhanglr  
 * @date 2019年6月27日
 */
@NoArgsConstructor
@Data
@Accessors(chain = true)
@Table(name = "down_price_goods_manage")
public class DownPriceGoodsManage {
	@TableId
	@Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
	private String uuId;
	
	@Column(name = "good_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String goodId; //商品id
	
	@Column(name = "start_time", type = MySqlTypeConstant.DATETIME)
	private Date startTime;//开始时间
	
	@Column(name = "end_time", type = MySqlTypeConstant.DATETIME)
	private Date endTime;//结束时间
	
	
	@Column(name = "max", type = MySqlTypeConstant.DOUBLE, length = 8,decimalLength = 2)
	private Double max;  //每次砍价最大金额
	
	@Column(name = "min", type = MySqlTypeConstant.DOUBLE, length = 8,decimalLength = 2)
	private Double min; //每次砍价最小金额
	
	@Column(name = "new_user_max", type = MySqlTypeConstant.DOUBLE, length = 8,decimalLength = 2)
	private Double newUserMax;  //新用户每次砍价最大金额
	
	@Column(name = "new_user_min", type = MySqlTypeConstant.DOUBLE, length = 8,decimalLength = 2)
	private Double newUserMin; //新用户每次砍价最小金额
	
	
	@Column(name = "extra", type = MySqlTypeConstant.INT, length = 11)
	private Integer extra; //1:无，2：新用户，3：验证手机号
	
	@Column(name = "money", type = MySqlTypeConstant.DOUBLE, length = 8,decimalLength = 2)
	private Double money; //新用户多加两元
	
	@Column(name = "start_price", type = MySqlTypeConstant.DOUBLE, length = 8,decimalLength = 2)
	private Double startPrice; //砍价初始价格
	
	@Column(name = "low_price", type = MySqlTypeConstant.DOUBLE, length = 8,decimalLength = 2)
	private Double lowPrice; //砍价最低价格
	
	@Column(name = "amount", type = MySqlTypeConstant.INT, length = 11)
	private Integer amount; //砍价商品数量
	
	@Column(name = "is_free", type = MySqlTypeConstant.INT, length = 2,defaultValue = "0")
	private Integer isFree; //是否包邮
	
	@Column(name = "num", type = MySqlTypeConstant.INT, length = 2)
	private Integer num; //用户砍价发起之后几小时结束
	
	
}
